package com.boot.dog.entities.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.boot.dog.entities.base.BasePojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @Author: MaxLv
 * @Date: 2020/1/15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "tbl_area")
public class Area extends BasePojo {

    private static final long serialVersionUID = 1L;

    @TableField(value = "title")
    private String title;

    @TableField(value = "longitude")
    private Double longitude;

    @TableField(value = "latitude")
    private Double latitude;

    @TableField(value = "parent_id")
    private Integer parentId;

    @TableField(value = "leaf")
    private Integer leaf;

    @TableField(value = "zoom")
    private Integer zoom;

    @TableField(value = "level")
    private Integer level;

    @TableField(value = "area_path")
    private String areaPath;

    @TableField(exist = false)
    private List<Area> children;

    @TableField(exist = false)
    private Boolean expand = false;

    @TableField(exist = false)
    private Boolean checked = false;

    @TableField(exist = false)
    private Boolean selected = false;

}
